package fragment;

import android.content.Context;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.jizhangben.HomeActivity;
import com.example.jizhangben.R;
import com.example.jizhangben.databinding.FragmentZhiFuBaoBinding;

public class ZhiFuBaoFragment extends Fragment {
    private FragmentZhiFuBaoBinding binding;
    private HomeActivity activity;
    private SQLiteDatabase sqlDate;
    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        activity = (HomeActivity)view.getContext();

        SharedPreferences sp = activity.getSharedPreferences("xinxi", Context.MODE_PRIVATE);




    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        binding = FragmentZhiFuBaoBinding.inflate(inflater, container, false);
        return binding.getRoot();
    }


}